import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';

import { BrowserRouter as Router } from 'react-router-dom'
import { ConfigProvider } from 'antd';

// 导入 Provider 组件 从 react-redux
import { Provider } from 'react-redux';
// 导入store 仓库实现全局化
import store from '@/store/index'
// 导入中文语言包
import zhCN from 'antd/locale/zh_CN';

const root = ReactDOM.createRoot(
  document.getElementById('root') as HTMLElement
);
root.render(
  <ConfigProvider
    theme={{
      token: {
        colorPrimary: '#00b96b', // 自定义的主题色
      },
    }}
    locale={zhCN}
  >
    <Provider store={store}>
      <Router>
        <App />
      </Router>
    </Provider>
  </ConfigProvider>
);

